package com.csyaonie.android.grideview;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.GridView;

import com.csyaonie.android.R;
import com.csyaonie.android.listview.MyListViewAdapter;

public class GrideViewActivity extends AppCompatActivity {

    private GridView gridView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_gride_view);
        gridView=findViewById(R.id.gv1);
        gridView.setAdapter(new MyGrideViewAdapter(GrideViewActivity.this));
    }
}